<template>
  <view class="container-orange">
    <!-- 顶部 -->
    <view class="mine-msg">
      <view class="mineimg">
        <cover-image class="img" src="../../static/logo.png"></cover-image>
      </view>
      <view class="weixin-name"> 用户微信名称 </view>
    </view>
    <!-- 中间 -->
    <view class="mine-card">
      <view class="mime-title">个人信息</view>
      <!-- 姓名 -->
      <view class="mine-showcommon">
        <view class="mine-iconimg">
          <cover-image class="img" src="../../static/logo.png"></cover-image>
        </view>
        <view class="showcommon_r">
          <text class="name_l width">姓名</text>
          <text class="name_r ml">张三</text>
        </view>
      </view>
      <!-- 联系方式 -->
      <view class="mine-showcommon">
        <view class="mine-iconimg">
          <cover-image class="img" src="../../static/logo.png"></cover-image>
        </view>
        <view class="showcommon_r border_bottom_none">
          <text class="name_l width">联系方式</text>
          <text class="name_r">17756366485</text>
        </view>
      </view>
    </view>
    <!-- 退出 -->
    <view class="loginout">
      <u-button @click="loginOut" type="warning" size="default" shape="round"
        >退出登录</u-button
      >
    </view>
  </view>
</template>

<script>
export default {
  data() {
    return {};
  },
  methods: {
    // 退出
    loginOut() {
      uni.reLaunch({
        url: "/pages/loginregister/loginRegister",
      });
    },
  },
};
</script>

<style lang="less" scoped>
page {
  background: orange;
}
.mine-msg {
  text-align: center;
  .mineimg {
    width: 150rpx;
    height: 150rpx;
    border-radius: 50%;
    margin: 0 auto;
    margin-bottom: 20rpx;
    .img {
      width: 100%;
    }
  }
  .weixin-name {
    font-size: 30rpx;
    color: #fff;
  }
}
.mine-card {
  width: 85%;
  padding: 40rpx 70rpx 40rpx 40rpx;
  margin: 0 auto;
  margin-top: 40rpx;
  background: #fff;
  border-radius: 20rpx;
  .mime-title {
    font-size: 30rpx;
    font-weight: 600;
    margin-bottom: 40rpx;
  }
}
.mine-showcommon {
  display: flex;
  align-items: center;
  .mine-iconimg {
    width: 40rpx;
    height: 40rpx;
    .img {
      width: 100%;
    }
  }
}

.showcommon_r {
  display: flex;
  flex: 1;
  padding: 20rpx;
  border-bottom: 1px solid orange;
  .name_l {
    display: block;
    border-right: 1px solid orange;
  }
  .name_r {
    display: block;
    padding-left: 20rpx;
  }
}
.border_bottom_none {
  border-bottom: none;
}
.width {
  width: 130rpx;
}
.loginout {
  width: 85%;
  margin: 0 auto;
  margin-top: 200rpx;
}
</style>